package com.jintu.portal.pojo.dto;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * Created by junhu on 2017/9/22.
 */
public class RegisterDto implements Serializable {

    @NotNull
    @Pattern(regexp = "^(1[345789])\\d{9}$", message = "请输入管理员真实的手机号码，例如159********")
    private String userName;

    @NotNull(message = "请输入管理员真实姓名，1-16个字符组成" )
    private String realName;

    @NotNull
    @Pattern(regexp = "^[0-9A-Za-z]{6,20}$", message = "请设置6-20个字母或数字组成的密码")
    private String pwd;

    private String confirmPwd;

    @NotNull(message = "请输入正确的短信验证码")
    private String verifyCode;
    private Long companyId;//企业ID
    private Long departmentId;//部门ID
    private Long postId;//岗位ID

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getConfirmPwd() {
        return confirmPwd;
    }

    public void setConfirmPwd(String confirmPwd) {
        this.confirmPwd = confirmPwd;
    }

    public String getVerifyCode() {
        return verifyCode;
    }

    public void setVerifyCode(String verifyCode) {
        this.verifyCode = verifyCode;
    }

    public Long getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    public Long getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(Long departmentId) {
        this.departmentId = departmentId;
    }

    public Long getPostId() {
        return postId;
    }

    public void setPostId(Long postId) {
        this.postId = postId;
    }
}
